{include file="public/meat" title="会员调用"/}
<div class="cx-fex-c">
    <div class="x11 mt-20">
        <a class="button button-S bg-blue mr-10" href="{:url('index',array('id'=>$postdb.id,'onlay'=>'new'))}">更换其他内容</a>
        <a class="button button-S bg-blue cx-click" data-type="close">返回频道</a>
    </div>
    <div class="x11 mt-15">
        <fieldset class="cx-field">
            <legend class="cx-field-legend">会员调用</legend>
            <form class="layui-form form form-horizontal" id="addform" action="{:url('user')}" method="post">
                <div class="cx-fex-l mb-10">
                    <div class="x3 t-r">
                        <label class="lab">选择要显示的用户组<span class="t-red">(*)</span></label>
                    </div>
                    <div class="xs8 xl9">
                        <div class="bk-gray cx-artsids">
                            {volist name="postdb.group" id="cx" empty=""}
                            <div class="layui-fluid lh-30">
                                <input type="checkbox" name="group_id[]" title="|--{$cx.title}" value="{$cx.id}" lay-skin="primary" {in name="$cx.id" value="$postdb.conf.group|default=''"}checked="checked"{/in}>
                            </div>
                            {/volist}
                        </div>
                    </div>
                </div>
                <div class="cx-fex-l mb-10">
                    <div class="x3 t-r">
                        <label class="lab">是否显示推荐</label>
                    </div>
                    <div class="xs8 xl9">
                        <input name="conf[jian]" value="1" {eq name="$postdb.conf.jian|default=''" value="1"}checked="checked"{/eq} title="推荐" type="radio">
                        <input name="conf[jian]" value="0" {eq name="$postdb.conf.jian|default='0'" value="0"}checked="checked"{/eq} title="全部(包含未推荐和推荐)" type="radio">
                    </div>
                </div>
                <div class="cx-fex-l mb-10">
                    <div class="x3 t-r">
                        <label class="lab">排序<span class="t-red">(*)</span></label>
                    </div>
                    <div class="xs8 xl9">
                        <select name="conf[userorder]">
                            <option value="0" {eq name="$postdb.conf.userorder|default='0'" value="0"}selected="selected"{/eq}>注册时间降序</option>
                            <option value="1" {eq name="$postdb.conf.userorder|default=''" value="1"}selected="selected"{/eq}>注册时间升序</option>
                            <option value="2" {eq name="$postdb.conf.userorder|default=''" value="2"}selected="selected"{/eq}>登录时间升序</option>
                            <option value="3" {eq name="$postdb.conf.userorder|default=''" value="3"}selected="selected"{/eq}>登录时间降序</option>
                        </select>
                    </div>
                </div>
                <div class="cx-fex-l mb-10">
                    <div class="x3 t-r">
                        <label class="lab">显示几条 <span class="t-red">(*)</span> </label>
                    </div>
                    <div class="xs8 xl9">
                        <div class="cx-input-tabel">
                            <input name="conf[rows]" class="ipt" placeholder="默认为1" value="{$postdb.conf.rows|default='5'}" type="text">
                            <span class="cx-input-fl">条</span>
                        </div>
                    </div>
                </div>
                <div class="cx-fex-l mb-10">
                    <div class="x3 t-r">
                        <label class="lab">是否暂时隐藏<span class="t-red">(*)</span></label>
                    </div>
                    <div class="xs8 xl9">
                        <input name="status" value="0" {eq name="$postdb.status|default=''" value="0"}checked="checked"{/eq} title="是" type="radio">
                        <input name="status" value="1" {eq name="$postdb.status|default='1'" value="1"}checked="checked"{/eq} title="否" type="radio">
                    </div>
                </div>
                <div class="cx-fex-l mb-10">
                    <div class="x3 t-r">
                        <label class="lab">模板代码 <span class="t-red">(*)</span> </label>
                    </div>
                    <div class="xs8 xl9">
                        <textarea id="content" class="ipt" name="conf[tempcode]" rows="5">{$postdb.conf.tempcode|default=''}</textarea>
                    </div>
                </div>
                <div class="cx-fex-l mb-10">
                    <div class="x3 t-r">
                        <label class="lab"></label>
                    </div>
                    <div class="xs8 xl9">
                        <input type="hidden" name="id" required lay-verify="required" value="{$postdb.id|default=''}">
                        <input type="hidden" name="__token__" required lay-verify="required" value="{$Request.token}" />
                        <button class="button bg-blue" lay-submit lay-filter="labelend-btn">立即提交</button>
                    </div>
                </div>

            </form>
        </fieldset>
    </div>
</div>
{include file="public/js" /}
<script>
    layui.config({
        base: '__ADMIN__/js/'
    }).use('app');
</script>
<script>
    layui.use('layer', function(){
        var layer = layui.layer;
        var index = parent.layer.getFrameIndex(window.name); //获取窗口索引
        $('#transmit').click(function(){
            parent.$(".{$postdb.title}").html($('#contenttxt').val());
        })
    })
</script>
{include file="public/footer" /}